<template>
  <view class="bjys2">
    <view @click="navigateBtn()" class="play_back">
      <image src="@/static/img/play_back.png" mode=""></image>
    </view>
    <view class="title">
      留言记录
    </view>
    <div class="buycardjl" v-for="(item,index) in userfk" :key="index">
      <p style="color: #9da6ad;font-size: 13px;">{{ item.addtime }}</p>
      <div class="card-item">
        <div class="card-right">
          <span class="cardid"><b>我的留言：</b>
            <p class="xthf">{{ item.contents }}</p>
          </span>
          <span class="cardtime"><b style="line-height: 25px;">系统回复：</b>
            <p class="xthf">{{ item.contentss || '系统未回复' }}</p>
          </span>
          <span class="cardtime"><b>回复时间：</b>
            <p style="padding: 0;">{{ item.hftime }}</p>
          </span>
        </div>
      </div>
    </div>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        password1: '',
        password2: '',
        password3: '',
        mydl: [],
        userfk: []
      }
    },
    methods: {

      navigateBtn() {
        uni.navigateBack();
      },
    },
    onLoad() {
      this.$http.ufankuijl({
        id: uni.getStorageSync('token')
      }).then(res => {
        if (res.code == 200) {
          this.userfk = res.data.userfk;
        }
      })
    }
  }
</script>

<style lang="less">
  .bjys2 {
    padding-top: 50rpx;
    padding-bottom: 20rpx;
    height: 130rpx;
    width: 750rpx;
    top: 0;
    position: absolute;
    width: 100%;
    background: linear-gradient(90deg, #bdc3c7, #2c3e50);
    border-bottom-right-radius: 30rpx;
    border-bottom-left-radius: 30rpx;

    .title {
      margin-bottom: 30rpx;
      position: relative;
      font-size: 32rpx;
      text-align: center;
      color: #FFFFFF;

      image {
        position: absolute;
        right: 30rpx;
        width: 40rpx;
        height: 40rpx;
      }
    }
  }

  .dl_title {
    position: absolute;
    color: white;
    font-size: 20px;
    max-width: 414px;
    margin: auto;
    width: 100%;
    text-align: center;
    z-index: 1;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    background: linear-gradient(90deg, #bdc3c7, #2c3e50);
    padding: 15px 0;
  }

  .back {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-image: url(../assets/img/play_back.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 20;
  }

  .card_list {
    width: 94%;
    padding: 70px 3% 0 3%;
  }

  .card-item {
    background-color: white;
    padding: 15px 0 2px 0;
    margin: 10px 0;
    border-radius: 20px;
  }

  .card-right {
    margin-left: 15px;
    margin-bottom: 10px;
  }

  .card-right span {
    display: flex;
  }

  .cardtime p {
    padding: 7px 0;
  }

  .cardmoney p {
    font-size: 19px;
    font-weight: 700;
    color: red;
  }

  b {
    font-size: 14px;
    color: #8e98a0;
    letter-spacing: 2.5px;
  }

  p {
    letter-spacing: 1px;
    text-align: center;
  }

  .iconfont {
    margin-left: 5px;
  }

  .buyjlckxq {
    width: 93%;
    margin: 5px 0 5px 15px;
    display: flex;
    border-top: 1px solid #e4e4e4;
  }

  .buycardjl {
    width: 92%;
    margin: 0 auto;
    padding: 5px 0;
  }

  .scroll_content {
    bottom: 47px;
  }

  .xthf {
    width: 70%;
    text-align: left;
    color: #474a4c;
    font-size: 14.5px;
    line-height: 16px;
  }
</style>
